package interfaces.tables;

import interfaces.superWidgets.InterfaceButton;

import org.fenggui.binding.render.ImageFont;
import org.fenggui.event.IButtonPressedListener;

public class TableButton extends InterfaceButton {
	
	private IButtonPressedListener listener;
	
	public TableButton(String text, IButtonPressedListener listener, ImageFont font) {
		super(text, font);
		this.listener = listener;
		addButtonPressedListener(listener);
	}
	
	public IButtonPressedListener getListener() { return listener; }
	
	public TableButton getCopy() {
		return new TableButton(getText(), listener, buttonFont);
	}
}